<!doctype html>
<html>
<head>
<?php $this->load->view('admin/common_head'); ?>
</head>
<body>
<div class="wrap">
	<div class="nav">
		<div class="return"><a href="<?php echo site_url('admin/agency/index'); ?>">返回上一级</a></div>
		<ul class="cc">
			<li><a href="<?php echo site_url('admin/agency/edit?action=base&agencyid='.$agencyid); ?>">基本资料</a></li>
			<li class="current"><a href="<?php echo site_url('admin/agency/edit?action=data&agencyid='.$agencyid); ?>">数据资料</a></li>
			<li><a href="<?php echo site_url('admin/agency/edit?action=right&agencyid='.$agencyid); ?>">权限设置</a></li>
		</ul>
	</div>
	<form id="J_agency_data_form" action="<?php echo site_url('admin/agency/do_edit_data'); ?>" method="post" accept-charset="utf-8">
		<input type="hidden" name="agencyid" value="<?php echo $agency['agencyid']; ?>" />
		<div class="h_a">基本资料</div>
		<div class="table_full">
			<table width="100%">
				<col class="th" />
				<col width="400" />
				<col />
				<tbody>
					<tr>
						<th>中介名称</th>
						<td><?php echo $agency['name']; ?> （中介ID：<?php echo $agency['agencyid']; ?>）</td>
						<td></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="h_a">数据资料</div>
		<div class="table_full">
			<table width="100%">
				<col class="th" />
				<col/>
				<tbody>
					<tr>
						<th>人名币余额</th>
						<td><input name="rmbnum" type="text" class="input length_5" value="<?php echo $agency['rmbnum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="h_a">发布总数</div>
		<div class="table_full">
			<table width="100%">
				<col class="th" />
				<col/>
				<tbody>
					<tr>
						<th>出售房总数量</th>
						<td><input name="salenum" type="text" class="input length_5" value="<?php echo $agency['salenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>出租房总数量</th>
						<td><input name="hirenum" type="text" class="input length_5" value="<?php echo $agency['hirenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="h_a">出售总数</div>
		<div class="table_full">
			<table width="100%">
				<col class="th" />
				<col/>
				<tbody>
					<tr>
						<th>当日出售房数量</th>
						<td><input name="todaysalenum" type="text" class="input length_5" value="<?php echo $agency['todaysalenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>当周出售房数量</th>
						<td><input name="weeksalenum" type="text" class="input length_5" value="<?php echo $agency['weeksalenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>当月出售房数量</th>
						<td><input name="monthsalenum" type="text" class="input length_5" value="<?php echo $agency['monthsalenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>固定出售房数量</th>
						<td><input name="fixedsalenum" type="text" class="input length_5" value="<?php echo $agency['fixedsalenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>最后发布出售房时间</th>
						<td><?php echo date('Y-m-d H:i', $agency['lastsaletime']); ?></td>
						<td></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="h_a">出租总数</div>
		<div class="table_full">
			<table width="100%">
				<col class="th" />
				<col/>
				<tbody>
					<tr>
						<th>当日出租房数量</th>
						<td><input name="todayhirenum" type="text" class="input length_5" value="<?php echo $agency['todayhirenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>当周出租房数量</th>
						<td><input name="weekhirenum" type="text" class="input length_5" value="<?php echo $agency['weekhirenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>当月出租房数量</th>
						<td><input name="monthhirenum" type="text" class="input length_5" value="<?php echo $agency['monthhirenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>固定出租房数量</th>
						<td><input name="fixedhirenum" type="text" class="input length_5" value="<?php echo $agency['fixedhirenum']; ?>"></td>
						<td><div class="fun_tips">必须是整数</div></td>
					</tr>
					<tr>
						<th>最后发布出租房时间</th>
						<td><?php echo date('Y-m-d H:i', $agency['lasthiretime']); ?></td>
						<td></td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="btn_wrap">
			<div class="btn_wrap_pd">
				<button type="submit" class="btn btn_submit">提交</button>
			</div>
		</div>
	</form>
</div>
<?php $this->load->view('admin/common_footer'); ?>
</body>
</html>